批量处理协议

This commit is contained in:
2022-06-11 17:01:04 +08:00
parent 942bec6263
commit b8c986c0d8
7 changed files with 796 additions and 770 deletions

View File

@@ -30,23 +30,17 @@ const payInfo = (orderId) => {
} }
// 会员开通协议 // 会员开通协议
const agreement = () => { const agreement = (id) => {
return request({ return request({
url: 'cms/pages/1' url: 'cms/pages/'+id
}) })
} }
// 成长体系
const growth = () => {
return request({
url: 'cms/pages/2'
})
}
export { export {
vip, vip,
vipPay, vipPay,
payInfo, payInfo,
agreement, agreement,
growth
} }

View File

@@ -20,7 +20,7 @@
<button @click="login('code')">登录</button> <button @click="login('code')">登录</button>
</view> </view>
<view class="auth-agreement"> <view class="auth-agreement">
登录即表示同意<navigator hover-class="none">用户协议</navigator><navigator hover-class="none">隐私政策</navigator> 登录即表示同意<navigator hover-class="none" url="/pages/vip/agreement?id=3">用户协议</navigator><navigator hover-class="none" url="/pages/vip/agreement?id=4">隐私政策</navigator>
</view> </view>
<!-- <view class="auth-other"> <!-- <view class="auth-other">
<button @click="login('mnemonic')">使用助记词登录</button> <button @click="login('mnemonic')">使用助记词登录</button>

View File

@@ -51,7 +51,7 @@
</view> </view>
</view> </view>
<view class=" introduce"> 退换货说明 </view> <view class=" introduce"><navigator hover-class="none" url="/pages/vip/agreement?id=5"> 退换货说明</navigator> </view>
</view> </view>
</template> </template>

View File

@@ -12,16 +12,20 @@
content: '' content: ''
}; };
}, },
created() { onLoad(e) {
agreement().then(res => { console.log(e.id);
this.content = res.content agreement(e.id).then(res => {
}).catch(err => { this.content = res.content
uni.showToast({ uni.setNavigationBarTitle({
title: err.message, title:res.title
icon : 'none' })
}) }).catch(err => {
}) uni.showToast({
} title: err.message,
icon : 'none'
})
})
},
} }
</script> </script>

View File

@@ -20,7 +20,7 @@
</view> </view>
</block> </block>
</view> </view>
<navigator class="vip-more" url="/pages/vip/growth" hover-class="none">成长体系<uni-icons size="14" type="forward" color="#9f5529"></uni-icons></navigator> <navigator class="vip-more" url="/pages/vip/agreement?id=2" hover-class="none">成长体系<uni-icons size="14" type="forward" color="#9f5529"></uni-icons></navigator>
</view> </view>
</view> </view>
<view class="vip-content"> <view class="vip-content">
@@ -48,7 +48,7 @@
</view> </view>
<view class="footer-vip" v-if="isOpen"> <view class="footer-vip" v-if="isOpen">
<button @click="onOpenVip">开通会员</button> <button @click="onOpenVip">开通会员</button>
<view class="footer-text">开通即表示同意共力生态<navigator url="./agreement">会员开通协议</navigator></view> <view class="footer-text">开通即表示同意共力生态<navigator url="/pages/vip/agreement?id=1">会员开通协议</navigator></view>
</view> </view>
</view> </view>
</template> </template>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long