|
@@ -21,8 +21,8 @@
|
|
|
<view class="row-text noTk">无条款</view>
|
|
|
<radio class="row-radio" value="无条款" color="#E15616"/>
|
|
|
</label>
|
|
|
- <label class="row-input" v-for="(item, index) in freightList" :key="item.value">
|
|
|
- <view class="row-text">{{item.name}}</view>
|
|
|
+ <label class="row-input" v-for="(item, index) in regulaDatas" :key="index">
|
|
|
+ <view class="row-text" @click.stop="gotoConten(item.id)">{{item.name.length>15?item.name.substr(0,15)+'...':item.name}}</view>
|
|
|
<radio class="row-radio" :value="item.name" :checked="index === current" color="#E15616"/>
|
|
|
</label>
|
|
|
</radio-group>
|
|
@@ -35,33 +35,37 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
export default{
|
|
|
name:'regulations',
|
|
|
props:{
|
|
|
regulaDatas:{
|
|
|
- type:Object
|
|
|
+ type:Array
|
|
|
}
|
|
|
},
|
|
|
data(){
|
|
|
return{
|
|
|
regulaText:'无条款',
|
|
|
- freightList:[
|
|
|
- {value:1,name:'第一款—售后条款(无仪器产权'},
|
|
|
- {value:0,name:'第一款—售后条款(无仪器产权'},
|
|
|
- {value:-1,name:'第一款—售后条款(无仪器产权'},
|
|
|
- {value:-1,name:'第一款—售后条款(无仪器产权'},
|
|
|
- {value:-1,name:'第一款—售后条款(无仪器产权'},
|
|
|
- {value:-1,name:'第一款—售后条款(无仪器产权'},
|
|
|
- {value:-1,name:'第一款—售后条款(无仪器产权'},
|
|
|
- {value:-1,name:'第一款—售后条款(无仪器产权'},
|
|
|
- ],
|
|
|
+
|
|
|
freightMoney:0,
|
|
|
specClass: '',//规格弹窗css类,控制开关动画
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ regulaDatas: {
|
|
|
+ handler: function (el) {//监听对象的变换使用 function,箭头函数容易出现this指向不正确
|
|
|
+ this.regulaDatas = el
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ },
|
|
|
methods:{
|
|
|
+ gotoConten(id){
|
|
|
+ console.log(id)
|
|
|
+ this.$api.navigateTo(`/pages/service/sellconten?id=${id}`)
|
|
|
+ },
|
|
|
radioChange(e){
|
|
|
this.regulaText = e.target.value;
|
|
|
},
|