Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
wwxin | 7d9cf8031e | |
wwxin | 479a129871 |
|
@ -64,7 +64,7 @@
|
|||
/* 快应用特有相关 */
|
||||
"mp-weixin" : {
|
||||
/* 微信小程序特有相关 */
|
||||
"appid" : "wx2ab12300088159ca",
|
||||
"appid" : "wxcd8ff727ae4c8b73",
|
||||
"setting" : {
|
||||
"urlCheck" : false,
|
||||
"es6" : true
|
||||
|
|
|
@ -3,6 +3,24 @@
|
|||
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
|
||||
},
|
||||
"pages": [
|
||||
{
|
||||
"path": "pages/index"
|
||||
},
|
||||
{
|
||||
"path": "pages/user"
|
||||
},
|
||||
{
|
||||
"path": "pages/form",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登记入口"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/test",
|
||||
"style": {
|
||||
"navigationBarTitleText": "小程序测试"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/home",
|
||||
"style": {
|
||||
|
@ -16,12 +34,43 @@
|
|||
"navigationBarTitleText": "首页",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/payReturn",
|
||||
"style": {
|
||||
"navigationBarTitleText": "完成",
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
}
|
||||
|
||||
],
|
||||
"tabBar": {
|
||||
"color": "#A6B2C7",
|
||||
"selectedColor": "#050000",
|
||||
"backgroundColor": "#ffffff",
|
||||
"spacing": "1px",
|
||||
"fontSize": "14px",
|
||||
"iconWidth": "30px",
|
||||
"height": "66px",
|
||||
"borderStyle": "black",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/index",
|
||||
"iconPath": "static/tabBar/home-default@3x.png",
|
||||
"selectedIconPath": "static/tabBar/home-active@3x.png",
|
||||
"text": "首页"
|
||||
},
|
||||
|
||||
{
|
||||
"pagePath": "pages/user",
|
||||
"iconPath": "static/tabBar/my-default@3x.png",
|
||||
"selectedIconPath": "static/tabBar/my-active@3x.png",
|
||||
"text": "我的"
|
||||
}
|
||||
]
|
||||
},
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "#fff",
|
||||
"navigationBarTitleText": "共享茶室商家端",
|
||||
"navigationBarTitleText": "小蜻蜓融媒",
|
||||
"navigationBarBackgroundColor": "#FD6E56",
|
||||
"backgroundColor": "#FFFFFF"
|
||||
}
|
||||
|
|
|
@ -2,26 +2,24 @@
|
|||
* @Author: wwxin
|
||||
* @Date: 2023-12-08 13:58:32
|
||||
* @LastEditors: wwxin 2463926940@qq.com
|
||||
* @LastEditTime: 2024-07-29 15:23:50
|
||||
* @LastEditTime: 2024-09-25 10:18:49
|
||||
* @FilePath: /sharetea-user/src/pagesUser/profile.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<template>
|
||||
<view class="page-bg">
|
||||
<u-navbar back-text="返回" :title="title"></u-navbar>
|
||||
<u-parse :html="content"></u-parse>
|
||||
<u-parse :html="content" v-if="content"></u-parse>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { resourceAgree } from "@/service";
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
content: `
|
||||
`,
|
||||
content: `2`,
|
||||
title:''
|
||||
};
|
||||
},
|
||||
|
@ -29,12 +27,11 @@ export default {
|
|||
onLoad(opt) {
|
||||
let promotionId = opt.promotionId;
|
||||
let typesparmes = opt.type;
|
||||
this.title=typesparmes==1?' 《活动规则》':typesparmes==2?'《隐私政策》':'《会员服务及自动续费协议》'
|
||||
this.title=typesparmes==1?' 《活动规则》':typesparmes==2?'《隐私政策》': typesparmes==3? '《会员服务及自动续费协议》':'《蜻蜓FM超级会员自动续费服务协议》'
|
||||
resourceAgree({ promotionId, typesparmes }).then((resp) => {
|
||||
this.content = resp
|
||||
});
|
||||
},
|
||||
|
||||
onShow() {},
|
||||
};
|
||||
</script>
|
||||
|
@ -44,7 +41,7 @@ export default {
|
|||
background: #fff;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
padding: 20px;
|
||||
padding:10px;
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
|
@ -0,0 +1,120 @@
|
|||
<!--
|
||||
* @Author: wwxin
|
||||
* @Date: 2023-12-08 13:58:32
|
||||
* @LastEditors: wwxin 2463926940@qq.com
|
||||
* @LastEditTime: 2024-09-13 19:19:53
|
||||
* @FilePath: /sharetea-user/src/pagesUser/profile.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<template>
|
||||
<view class="page-bg">
|
||||
<u-form :model="form" ref="uForm">
|
||||
<u-form-item label="姓名"><u-input v-model="form.name" /></u-form-item>
|
||||
<u-form-item label="性别">
|
||||
<u-radio-group v-model="radio">
|
||||
<u-radio
|
||||
v-for="(item, index) in radioList"
|
||||
:key="index"
|
||||
:name="item.name"
|
||||
:disabled="item.disabled"
|
||||
>
|
||||
{{ item.name }}
|
||||
</u-radio>
|
||||
</u-radio-group>
|
||||
</u-form-item>
|
||||
<u-form-item label="订单号" label-width="100"><u-input v-model="form.intro" /></u-form-item>
|
||||
<u-form-item label="是否领取过权益" label-width="300"
|
||||
><u-switch slot="right" v-model="switchVal"></u-switch
|
||||
></u-form-item>
|
||||
<u-form-item label="建议"><u-input v-model="form.jianjie" /></u-form-item>
|
||||
<u-form-item label="是否还有下次订购意向" label-width="300">
|
||||
<u-radio-group v-model="radio1">
|
||||
<u-radio
|
||||
v-for="(item, index) in radioLis1"
|
||||
:key="index"
|
||||
:name="item.name"
|
||||
:disabled="item.disabled"
|
||||
>
|
||||
{{ item.name }}
|
||||
</u-radio>
|
||||
</u-radio-group>
|
||||
</u-form-item>
|
||||
</u-form>
|
||||
<view class="btn-btm">
|
||||
<u-button type="primary" @click="handleClick" size="medium">点击提交</u-button>
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
|
||||
form: {
|
||||
name: "",
|
||||
intro: "",
|
||||
jianjie:''
|
||||
},
|
||||
radioLis1: [
|
||||
{
|
||||
name: "是",
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
name: "否",
|
||||
disabled: false,
|
||||
},
|
||||
],
|
||||
radioList: [
|
||||
{
|
||||
name: "男",
|
||||
disabled: false,
|
||||
},
|
||||
{
|
||||
name: "女",
|
||||
disabled: false,
|
||||
},
|
||||
],
|
||||
radio: "",
|
||||
radio1:'',
|
||||
switchVal: false,
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
||||
handleClick(){
|
||||
if(this.form. name&&this.form. intro&&this.form. jianjie&&this.radio&&this.radio1
|
||||
)
|
||||
{
|
||||
this.$refs.uToast.show({
|
||||
title: '提交成功',
|
||||
type: 'success',
|
||||
url: '/pages/index'
|
||||
})
|
||||
}else{
|
||||
this.$refs.uToast.show({
|
||||
title: '请填写完整',
|
||||
type: 'error',
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
onShow() {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-bg {
|
||||
padding: 20px;
|
||||
.btn-btm{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 50px;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -1,31 +1,37 @@
|
|||
<template>
|
||||
<scroll-view scroll-y>
|
||||
<u-navbar :title="navTitle" :is-back="false" ></u-navbar>
|
||||
<u-navbar :title="navTitle" :is-back="false"></u-navbar>
|
||||
|
||||
<view
|
||||
class="index-page"
|
||||
:style="{ backgroundImage: 'url(' + coverImgUrl + ')' }"
|
||||
>
|
||||
<span
|
||||
v-if="agreementOne == 1"
|
||||
class="hdgz_top"
|
||||
@click="toAgreePages('hdRule')"
|
||||
>
|
||||
活动规则
|
||||
</span>
|
||||
<view ref="myImg">
|
||||
<image :src="img1" alt="" class="header-img" mode="widthFix"></image>
|
||||
<image :src="img2" alt="" class="item" mode="widthFix"></image>
|
||||
<u-notice-bar scrollable left-icon="volume-o" :list="ntext">
|
||||
<!-- {{ ntext.join("" + longSpace) }} -->
|
||||
</u-notice-bar>
|
||||
<u-notice-bar :list="ntext"> </u-notice-bar>
|
||||
<view class="transaction-view" ref="myTransactionView">
|
||||
<!-- <button
|
||||
<button
|
||||
class="trasition-btns"
|
||||
:style="{ backgroundImage: 'url(' + coverBtnImgUrl + ')' }"
|
||||
open-type="getPhoneNumber"
|
||||
@getphonenumber="getPhoneNumber"
|
||||
type="text"
|
||||
></button> -->
|
||||
@getphonenumber="getPhoneNumber"
|
||||
type="text"
|
||||
v-if="!phoneNumber"
|
||||
></button>
|
||||
<button
|
||||
v-else
|
||||
class="trasition-btns"
|
||||
:style="{ backgroundImage: 'url(' + coverBtnImgUrl + ')' }"
|
||||
@click="submitOrder"
|
||||
></button>
|
||||
<view class="agreement-view" style="padding: 0 30px">
|
||||
<view class="agreement-view" style="padding: 0 1.875rem">
|
||||
<view class="view">
|
||||
<u-checkbox
|
||||
v-model="isCheck"
|
||||
|
@ -35,11 +41,11 @@
|
|||
>
|
||||
我已阅读并同意
|
||||
<span
|
||||
v-if="agreementOne == 1"
|
||||
v-if="agreementThree == 1"
|
||||
class="agreement"
|
||||
@click="toAgreePages('hdRule')"
|
||||
@click="toAgreePages('hyService')"
|
||||
>
|
||||
《活动规则》
|
||||
《会员服务协议》
|
||||
</span>
|
||||
<span
|
||||
v-if="agreementTwo == 1"
|
||||
|
@ -48,13 +54,16 @@
|
|||
>
|
||||
《隐私政策》
|
||||
</span>
|
||||
及其
|
||||
<span
|
||||
v-if="agreementThree == 1"
|
||||
v-if="agreementFour == 1"
|
||||
class="agreement"
|
||||
@click="toAgreePages('hyService')"
|
||||
@click="toAgreePages('zdxfRule')"
|
||||
>
|
||||
《会员服务及自动续费协议》
|
||||
《自动续费协议》
|
||||
</span>
|
||||
<text>并同意购买自动续费商品,</text>
|
||||
|
||||
<text v-if="promotionCode != 'RZpJsF'">
|
||||
{{ accTxt }}业务资费:<text>{{ price }}</text
|
||||
>元/{{ priceTxt }}。
|
||||
|
@ -63,8 +72,59 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<image :src="img3" alt="" class="item" mode="widthFix"></image>
|
||||
|
||||
<u-modal
|
||||
v-model="tipsShow"
|
||||
title="用户协议及隐私保护"
|
||||
:show-confirm-button="false"
|
||||
>
|
||||
<template slot="default">
|
||||
<view class="yinsi-content">
|
||||
<view class="view">
|
||||
我已阅读并同意
|
||||
<span
|
||||
v-if="agreementThree == 1"
|
||||
class="agreement"
|
||||
@click="toAgreePages('hyService')"
|
||||
>
|
||||
《会员服务协议》
|
||||
</span>
|
||||
<span
|
||||
v-if="agreementTwo == 1"
|
||||
class="agreement"
|
||||
@click="toAgreePages('ysRule')"
|
||||
>
|
||||
《隐私政策》
|
||||
</span>
|
||||
及其
|
||||
<span
|
||||
v-if="agreementFour == 1"
|
||||
class="agreement"
|
||||
@click="toAgreePages('zdxfRule')"
|
||||
>
|
||||
《自动续费协议》
|
||||
</span>
|
||||
<text>并同意购买自动续费商品</text>
|
||||
</view>
|
||||
<u-button
|
||||
type="success"
|
||||
@click="handleAgree('agree')"
|
||||
shape="circle"
|
||||
:custom-style="customStyle"
|
||||
>同意并继续</u-button
|
||||
>
|
||||
<view class="no-agree" @click="handleAgree('noAgree')"
|
||||
>不同意</view
|
||||
>
|
||||
</view>
|
||||
</template>
|
||||
</u-modal>
|
||||
<image
|
||||
:src="img3"
|
||||
alt=""
|
||||
v-if="img3"
|
||||
class="item"
|
||||
mode="widthFix"
|
||||
></image>
|
||||
<view class="rule-content">
|
||||
<image :src="img4" alt="" class="rule-info" mode="widthFix"></image>
|
||||
</view>
|
||||
|
@ -74,17 +134,16 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { resourceInfo, proOrder, resourceAreaAv, resourceTel } from "@/service";
|
||||
import { resourceInfo, proOrder, resourceAreaAv, resourceTel ,getPhoneMini} from "@/service";
|
||||
import md5 from "js-md5";
|
||||
import {showTel} from '@/util/tool'
|
||||
import { showTel } from "@/util/tool";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tipsShow: false,
|
||||
longSpace: "\xa0".repeat(10),
|
||||
ntext: [],
|
||||
tipsShow: false,
|
||||
promotionCode: "arSOtc",
|
||||
img1: "",
|
||||
promotionCode: "pKlXLs",
|
||||
img2: "",
|
||||
img3: "",
|
||||
img4: "",
|
||||
|
@ -100,7 +159,7 @@ export default {
|
|||
agreementTwo: "1",
|
||||
agreementThree: "1",
|
||||
agreementFour: "1",
|
||||
mobile: "19999999999",
|
||||
mobile: "",
|
||||
isCheck: false,
|
||||
overlayShow: false,
|
||||
coverImgUrl: "",
|
||||
|
@ -110,36 +169,51 @@ export default {
|
|||
unionType: "",
|
||||
promotionId: "",
|
||||
navTitle: "",
|
||||
phoneNumber: "",
|
||||
customStyle: {
|
||||
width: "97%;",
|
||||
height: "3.75rem",
|
||||
margin: ".5rem 0",
|
||||
fontSize: "1.5rem",
|
||||
},
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
// isCheck: {
|
||||
// handler(val) {
|
||||
// if(val=true) this.submitOrder()
|
||||
// },
|
||||
// deep: true,
|
||||
// immediate: true,
|
||||
// },
|
||||
},
|
||||
methods: {
|
||||
//同意弹窗
|
||||
handleAgree(type) {
|
||||
if (type === "agree") {
|
||||
this.isCheck = true;
|
||||
this.tipsShow = false;
|
||||
this.submitOrder();
|
||||
} else {
|
||||
this.tipsShow = false;
|
||||
}
|
||||
},
|
||||
//获取用户手机号码
|
||||
getPhoneNumber(e) {
|
||||
let that = this;
|
||||
console.log(e,'eee');
|
||||
async getPhoneNumber(e) {
|
||||
if (this.phoneNumber) return;
|
||||
if (e.detail.errMsg == "getPhoneNumber:ok") {
|
||||
let res = e.detail;
|
||||
console.log(res,8989);
|
||||
|
||||
let code = e.detail.code;
|
||||
let res= await getPhoneMini({code:code})
|
||||
const { phoneNumber } = res.phone_info;
|
||||
this.phoneNumber = phoneNumber;
|
||||
this.tipsShow = true;
|
||||
} else {
|
||||
console.log(e.detail.code);
|
||||
uni.showToast({
|
||||
title: "领取之前需要获取您的手机号",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
}
|
||||
},
|
||||
shouye() {
|
||||
resourceInfo({ promotionCode: "arSOtc" }).then((result) => {
|
||||
resourceInfo({ promotionCode: this.promotionCode }).then((result) => {
|
||||
this.navTitle = result.name;
|
||||
const cdnBaseUrl = "https://prom-cdn.xtl10.fun/";
|
||||
this.coverImgUrl = cdnBaseUrl + result.backImg;
|
||||
this.img1 = cdnBaseUrl + result.logoImg;
|
||||
this.img2 = cdnBaseUrl + result.imgOne;
|
||||
this.img3 = cdnBaseUrl + result.imgTwo;
|
||||
this.img3 = result.imgTwo ? cdnBaseUrl + result.imgTwo : "";
|
||||
this.img4 = cdnBaseUrl + result.imgThree;
|
||||
this.coverBtnImgUrl = cdnBaseUrl + result.imgXxBtn;
|
||||
|
||||
|
@ -159,9 +233,6 @@ export default {
|
|||
this.priceTxt = `${result.periodPayDays}天`;
|
||||
}
|
||||
this.accTxt = result.agreementTxt;
|
||||
if (["afSKPj", "MadlRh", "oVkHuA"].includes(this.promotionCode)) {
|
||||
this.accTxt = "VIP";
|
||||
}
|
||||
});
|
||||
},
|
||||
toAgreePages(types) {
|
||||
|
@ -179,52 +250,54 @@ export default {
|
|||
},
|
||||
submitOrder() {
|
||||
if (!this.isCheck) {
|
||||
uni.showToast({
|
||||
title: "请先同意协议",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
this.tipsShow = true;
|
||||
return;
|
||||
}
|
||||
uni.showLoading({
|
||||
title: "加载中",
|
||||
});
|
||||
|
||||
resourceTel({ promotionCode: this.promotionCode, tel: this.mobile });
|
||||
let text = `mobile=${this.mobile}promotionCode=${this.promotionCode}`;
|
||||
resourceTel({ promotionCode: this.promotionCode, tel: this.phoneNumber });
|
||||
let text = `mobile=${this.phoneNumber}promotionCode=${this.promotionCode}`;
|
||||
let param = {
|
||||
mobile: this.mobile,
|
||||
mobile: this.phoneNumber,
|
||||
promotionCode: this.promotionCode,
|
||||
sign: md5(text),
|
||||
extra: `promotionCode=${this.promotionCode}`,
|
||||
noTel: true,
|
||||
// noTel: true,
|
||||
isWebChatMiniApp: true,
|
||||
payType: 2,
|
||||
};
|
||||
proOrder(param).then((res) => {
|
||||
uni.hideLoading();
|
||||
uni.navigateToMiniProgram({
|
||||
appId: "wx70c2aa21e58738d9",
|
||||
path: "pages/tabBar/user/user",
|
||||
extraData: {
|
||||
data1: "test",
|
||||
},
|
||||
success(res) {
|
||||
// 打开成功
|
||||
},
|
||||
proOrder(param)
|
||||
.then((res) => {
|
||||
uni.hideLoading();
|
||||
console.log(res.payUrl, "7878");
|
||||
let datas = JSON.parse(res.payUrl);
|
||||
console.log(datas);
|
||||
uni.navigateToMiniProgram({
|
||||
appId: datas.cqpMpAppId,
|
||||
path: datas.cqpMpPath,
|
||||
success(res) {
|
||||
// 打开成功
|
||||
},
|
||||
});
|
||||
})
|
||||
.catch(() => {
|
||||
uni.hideLoading();
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
maidian() {
|
||||
this.shouye();
|
||||
const visitorId = uni.getStorageSync("uniquecode");
|
||||
resourceAreaAv({ id: visitorId, promotionCode: this.promotionCode }).then(
|
||||
);
|
||||
resourceAreaAv({
|
||||
id: visitorId,
|
||||
promotionCode: this.promotionCode,
|
||||
}).then();
|
||||
},
|
||||
},
|
||||
onLoad(opt) {
|
||||
// this.promotionCode = opt.promotionCode;
|
||||
console.log(opt,'optt');
|
||||
this.promotionCode = opt.promotionCode || "JwhmEk";
|
||||
this.maidian();
|
||||
this.ntext = showTel();
|
||||
},
|
||||
|
@ -232,15 +305,31 @@ export default {
|
|||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.yinsi-content {
|
||||
padding: 1.25rem;
|
||||
text-align: center;
|
||||
font-size: 0.875rem;
|
||||
.agreement {
|
||||
color: rgb(207, 126, 126);
|
||||
}
|
||||
.no-agree {
|
||||
color: #000;
|
||||
opacity: 0.4;
|
||||
margin-top: 0.875rem;
|
||||
font-size: 0.8125rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.tip-dialog {
|
||||
margin: 20px 10px;
|
||||
padding: 10px 0;
|
||||
margin: 1.25rem 0.625rem;
|
||||
padding: 0.625rem 0;
|
||||
.van-button {
|
||||
width: 90%;
|
||||
border-radius: 28px;
|
||||
height: 65px;
|
||||
margin: 8px 0;
|
||||
font-size: 26px;
|
||||
border-radius: 1.75rem;
|
||||
height: 4.0625rem;
|
||||
margin: 0.5rem 0;
|
||||
font-size: 1.625rem;
|
||||
}
|
||||
.btn-list {
|
||||
display: flex;
|
||||
|
@ -250,8 +339,8 @@ export default {
|
|||
.no-agree {
|
||||
color: #000;
|
||||
opacity: 0.4;
|
||||
margin-top: 14px;
|
||||
font-size: 13px;
|
||||
margin-top: 0.875rem;
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
}
|
||||
.agreement-view {
|
||||
|
@ -268,13 +357,13 @@ export default {
|
|||
.view {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
line-height: 30px;
|
||||
line-height: 1.875rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
.rich-content {
|
||||
padding: 20px;
|
||||
max-height: 600px;
|
||||
padding: 1.25rem;
|
||||
max-height: 37.5rem;
|
||||
overflow-y: auto;
|
||||
}
|
||||
@keyframes scaleBtn {
|
||||
|
@ -298,7 +387,27 @@ export default {
|
|||
transform: scale(0.8);
|
||||
}
|
||||
}
|
||||
|
||||
.index-page {
|
||||
position: relative;
|
||||
.hdgz_top {
|
||||
position: absolute;
|
||||
top: 40px;
|
||||
right: 10rpx;
|
||||
writing-mode: vertical-rl;
|
||||
text-orientation: upright;
|
||||
width: 40rpx;
|
||||
min-height: 120px;
|
||||
background: rgba(51, 51, 51, 0.6);
|
||||
border-radius: 6px;
|
||||
font-size: 18px;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 10px;
|
||||
}
|
||||
.rule-content {
|
||||
width: 100%;
|
||||
.rule-info {
|
||||
|
@ -319,21 +428,22 @@ export default {
|
|||
flex-direction: column;
|
||||
.ipt-view {
|
||||
background-color: #fff;
|
||||
border: 1px solid #ffe1cc;
|
||||
border-radius: 65px;
|
||||
border: 0.0625rem solid #ffe1cc;
|
||||
border-radius: 4.0625rem;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
height: 54px;
|
||||
margin: 15px 0px;
|
||||
height: 3.375rem;
|
||||
margin: 0.9375rem 0rem;
|
||||
width: 85%;
|
||||
.ipt {
|
||||
border: none;
|
||||
color: #000;
|
||||
font-size: 22px;
|
||||
color: #666;
|
||||
font-size: 1.125rem;
|
||||
width: 100%;
|
||||
font-weight: 900;
|
||||
border-radius: 50%;
|
||||
padding-left: 20px;
|
||||
padding-left: 1.25rem;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
.trasition-btns {
|
||||
|
@ -342,22 +452,22 @@ export default {
|
|||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
display: block;
|
||||
height: 100rpx;
|
||||
height: 120rpx;
|
||||
margin: 40rpx 0;
|
||||
width: 600rpx;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
border-radius: 25px;
|
||||
border-radius: 1.5625rem;
|
||||
}
|
||||
.agreement-view {
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 12px;
|
||||
font-size: 0.75rem;
|
||||
::v-deep .u-checkbox__label {
|
||||
color: #fff !important;
|
||||
font-size: 12px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
.agreement {
|
||||
color: #fdd599;
|
||||
|
@ -370,14 +480,14 @@ export default {
|
|||
}
|
||||
}
|
||||
.van-toast .van-toast__text {
|
||||
font-size: 0.37037rem;
|
||||
padding: 0.27778rem 0;
|
||||
min-width: 7.40741rem;
|
||||
font-size: 5.9259px;
|
||||
padding: 4.4445px 0;
|
||||
min-width: 118.5186px;
|
||||
}
|
||||
|
||||
.notice-p {
|
||||
display: inline-block;
|
||||
margin-right: 40px;
|
||||
margin-right: 2.5rem;
|
||||
}
|
||||
|
||||
.wrapper {
|
||||
|
@ -400,4 +510,3 @@ export default {
|
|||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
<!--
|
||||
* @Author: wwxin
|
||||
* @Date: 2023-12-08 13:58:32
|
||||
* @LastEditors: wwxin 2463926940@qq.com
|
||||
* @LastEditTime: 2024-09-18 11:38:27
|
||||
* @FilePath: /sharetea-user/src/pagesUser/profile.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<template>
|
||||
<view class="page-bg">
|
||||
<img style="width:100%" src="https://prom-cdn.xtl10.fun/shangyou/kf9ocdv/1726217112802/C091238A-AFB4-44fa-9ECE-62CD763B73971542770.png" alt="">
|
||||
<view style="height:30px"></view>
|
||||
<view class="tags">
|
||||
<u-button type="warning" size="medium" @click="toView" >蜻蜓老客户意见登记入口</u-button>
|
||||
<u-button type="info" size="medium" @click="toTest" v-if="isView" >测试入口</u-button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {homeShowList } from "@/service";
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
isView:false,
|
||||
};
|
||||
},
|
||||
methods:{
|
||||
toView(){
|
||||
uni.navigateTo({
|
||||
url: '/pages/form'
|
||||
});
|
||||
},
|
||||
toTest(){
|
||||
uni.navigateTo({
|
||||
url: '/pages/test'
|
||||
});
|
||||
},
|
||||
geHomeList(){
|
||||
homeShowList({}).then(res=>{
|
||||
console.log(res,99);
|
||||
this.isView=res
|
||||
|
||||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.geHomeList()
|
||||
},
|
||||
onLoad(opt) {
|
||||
|
||||
},
|
||||
|
||||
onShow() {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.tags{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
</style>
|
|
@ -0,0 +1,51 @@
|
|||
<!--
|
||||
* @Author: wwxin
|
||||
* @Date: 2023-12-08 13:58:32
|
||||
* @LastEditors: wwxin 2463926940@qq.com
|
||||
* @LastEditTime: 2024-09-13 17:41:31
|
||||
* @FilePath: /sharetea-user/src/pagesUser/profile.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<template>
|
||||
<view class="page-bg">
|
||||
<u-navbar title="提示"></u-navbar>
|
||||
<view class="title">
|
||||
关注【星印会员】微信公众号
|
||||
</view>
|
||||
<view class="title">
|
||||
月月领红包
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
content: `2`,
|
||||
title:''
|
||||
};
|
||||
},
|
||||
created() {},
|
||||
onLoad(opt) {
|
||||
},
|
||||
onShow() {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-bg {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #457DFF;
|
||||
padding:10px;
|
||||
.title{
|
||||
color: #fff;
|
||||
font-size: 20px;
|
||||
margin: 20px;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,59 @@
|
|||
<!--
|
||||
* @Author: wwxin
|
||||
* @Date: 2023-12-08 13:58:32
|
||||
* @LastEditors: wwxin 2463926940@qq.com
|
||||
* @LastEditTime: 2024-09-13 19:37:37
|
||||
* @FilePath: /sharetea-user/src/pagesUser/profile.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<template>
|
||||
<view class="page-bg">
|
||||
<view class="tags">
|
||||
<u-tag :text="item" @click="todeatails(item)" type="success" v-for="item in promotionCodes" :key="item" />
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {getWechatMiniPromotionURlList } from "@/service";
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
isView:false,
|
||||
promotionCodes:[]
|
||||
};
|
||||
|
||||
},
|
||||
methods:{
|
||||
|
||||
geHomeList(){
|
||||
getWechatMiniPromotionURlList({}).then(res=>{
|
||||
this.promotionCodes = Object.keys(res);
|
||||
})
|
||||
},
|
||||
todeatails(item){
|
||||
uni.reLaunch({
|
||||
url: `/pages/home?promotionCode=${item}`
|
||||
});
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.geHomeList()
|
||||
},
|
||||
onLoad(opt) {
|
||||
|
||||
},
|
||||
|
||||
onShow() {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.tags{
|
||||
margin: 30px;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
|
@ -0,0 +1,53 @@
|
|||
<!--
|
||||
* @Author: wwxin
|
||||
* @Date: 2023-12-08 13:58:32
|
||||
* @LastEditors: wwxin 2463926940@qq.com
|
||||
* @LastEditTime: 2024-09-13 20:08:04
|
||||
* @FilePath: /sharetea-user/src/pagesUser/profile.vue
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
-->
|
||||
<template>
|
||||
<view class="page-bg">
|
||||
<u-cell-group>
|
||||
<u-cell-item icon="phone" title="订单疑问联系客服" :arrow="true" arrow-direction="down" @click="handlerCopy"></u-cell-item>
|
||||
</u-cell-group>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
content: `2`,
|
||||
title:''
|
||||
};
|
||||
},
|
||||
methods:{
|
||||
handlerCopy() {
|
||||
uni
|
||||
.makePhoneCall({
|
||||
phoneNumber: '4008103568',
|
||||
})
|
||||
.catch((e) => {});
|
||||
},
|
||||
},
|
||||
created() {},
|
||||
onLoad(opt) {
|
||||
|
||||
},
|
||||
|
||||
onShow() {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-bg {
|
||||
background: #fff;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
padding:10px;
|
||||
|
||||
}
|
||||
</style>
|
|
@ -2,16 +2,21 @@
|
|||
* @Author: wwxin
|
||||
* @Date: 2022-09-22 10:07:56
|
||||
* @LastEditors: wwxin 2463926940@qq.com
|
||||
* @LastEditTime: 2024-07-29 11:35:16
|
||||
* @FilePath: /ll-web-channel-saas-merchant/src/service/user/index.js
|
||||
* @LastEditTime: 2024-09-14 16:45:13
|
||||
* @FilePath:
|
||||
* @Description:
|
||||
*
|
||||
*/
|
||||
import { get, post } from "@/util/http";
|
||||
export const resourceInfo = (data) => get(`/api/c/common/resource/info/${data.promotionCode}`, data);
|
||||
export const resourceInfo = (data) => get(`/api/c/common/resource/info/${data.promotionCode}`);
|
||||
export const resourceAgree = (data) => get(`/api/c/common/resource/agreement/${data.promotionId}/${data.typesparmes}`,);
|
||||
|
||||
export const proOrder = (data) => post(`/api/order`,data);
|
||||
|
||||
export const resourceAreaAv = (data) => get(`/api/a/area/av`,data);
|
||||
export const resourceTel = (data) => get(`/api/a/area/tel`,data);
|
||||
export const homeShowList = (data) => get(`/api/wechat/mini/homeShowList`,data);
|
||||
//获取微信小程序推广位列表
|
||||
export const getWechatMiniPromotionURlList = (data) => get(`/api/wechat/mini/getWechatMiniPromotionURlList`,data);
|
||||
//获取手机号
|
||||
export const getPhoneMini = (data) => post(`/api/wechat/mini/getPhone`,data);
|
||||
|
|
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 510 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
|
@ -2,17 +2,18 @@
|
|||
* @Author: wwxin
|
||||
* @Date: 2023-02-04 11:05:26
|
||||
* @LastEditors: wwxin 2463926940@qq.com
|
||||
* @LastEditTime: 2024-07-29 15:00:48
|
||||
* @FilePath: /用户端/src/util/http/env.js
|
||||
* @LastEditTime: 2024-09-14 15:27:02
|
||||
* @FilePath: /
|
||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
*/
|
||||
// 测试环境
|
||||
const DEV_BASE_URL = "http://zong.xtl10.fun";
|
||||
const DEV_BASE_URL = "https://td.xtl10.fun";
|
||||
//const DEV_BASE_URL = "http://47.109.21.59:889";
|
||||
//const DEV_BASE_URL = "http://192.168.110.175:8081";
|
||||
let BASE_URL = DEV_BASE_URL;
|
||||
const envConfig = {
|
||||
BASE_URL,
|
||||
version: 1,
|
||||
versionCode: 1,
|
||||
};
|
||||
|
||||
export { envConfig };
|
||||
|
|
|
@ -240,17 +240,18 @@ export const number2text = (number, type = "lower") => {
|
|||
//获取随机号码展示领取会员
|
||||
export const showTel = () => {
|
||||
const telArr = getRandomTel();
|
||||
const membershipTypes = [
|
||||
"已领取爱奇艺月卡会员",
|
||||
"已领取优酷VIP月卡会员",
|
||||
"已领取芒果TV月卡会员",
|
||||
"已领取喜马拉雅VIP月卡会员",
|
||||
"已领取青桔单车月卡会员",
|
||||
"已领取饿了么月卡会员",
|
||||
"已领取QQ绿钻月卡会员"
|
||||
];
|
||||
// const membershipTypes = [
|
||||
// "已领取爱奇艺月卡会员",
|
||||
// "已领取优酷VIP月卡会员",
|
||||
// "已领取芒果TV月卡会员",
|
||||
// "已领取喜马拉雅VIP月卡会员",
|
||||
// "已领取青桔单车月卡会员",
|
||||
// "已领取饿了么月卡会员",
|
||||
// "已领取QQ绿钻月卡会员"
|
||||
// ];
|
||||
|
||||
return telArr.map(tel => `${tel}已领取会员`);
|
||||
|
||||
return telArr.map((tel, index) => `${tel} ${membershipTypes[index % 7]}`);
|
||||
};
|
||||
export const getRandomTel = () => {
|
||||
const numArray = [
|
||||
|
|